import request from '@/utils/request'

// 查询物料盘点列表
export function listMaterialinventory(query) {
  return request({
    url: '/mes/materialinventory/list',
    method: 'get',
    params: query
  })
}

// 查询物料盘点详细
export function getMaterialinventory(id) {
  return request({
    url: '/mes/materialinventory/' + id,
    method: 'get'
  })
}

// 新增物料盘点
export function addMaterialinventory(data) {
  return request({
    url: '/mes/materialinventory',
    method: 'post',
    data: data
  })
}

// 修改物料盘点
export function updateMaterialinventory(data) {
  return request({
    url: '/mes/materialinventory',
    method: 'put',
    data: data
  })
}

// 删除物料盘点
export function delMaterialinventory(id) {
  return request({
    url: '/mes/materialinventory/' + id,
    method: 'delete'
  })
}

// 查询物料盘点明细列表
export function detailMaterialinventory(query) {
  return request({
    url: "/mes/materialinventory/detail",
    method: "get",
    params: query,
  });
}
